const express = require('express');
const router = express.Router();

const journal = require('../../controller/journal')
const error = require('../../middleware/err-handle')
const auth = require('../../middleware/webAuth')


// 获取日志通知信息
router.get('/getNotice/:userId', auth(), journal.getJournal)

//错误处理中间键
router.use(error())

module.exports = router